/*
 * @描述: 卡信息 service层
 * @Author: /zlh
 * @Date: 2021-10-13 09:26:22
 * @Last Modified by: zlh
 * @Last Modified time: 2021-10-13 11:55:58
 */

import request from '@/utils/request';
import { secMap } from '@/configs/api.map';

const { api_queryOfficialNameByCityCode, api_queryCityOfficialParam,
    api_saveTieCardInformation, api_deleteTieCardInformation,
    api_getCityPromptMsg, api_saveCityPromptMsg,
    api_getCityInfoAccPass } = secMap;

/**
 * @description 获取城市社保公积金官网配置
 * @author zlh
 * @date 2021-10-27
 * @export
 * @param {object} data
 * @returns
 */
export async function queryOfficialNameByCityCode(data) {
    return request(api_queryOfficialNameByCityCode, {
        method: 'POST',
        data
    });
}
/**
 * @description 获取城市业务表单信息
 * @author zlh
 * @date 2021-10-27
 * @export
 * @param {object} data
 * @returns
 */
export async function queryCityOfficialParam(data) {
    return request(api_queryCityOfficialParam, {
        method: 'POST',
        data
    });
}
/**
 * @description 保存官网表单参数信息
 * @author zlh
 * @date 2021-10-27
 * @export
 * @param {object} data
 * @returns
 */
export async function saveTieCardInformation(data) {
    return request(api_saveTieCardInformation, {
        method: 'POST',
        data
    });
}
/**
 * @description 获取城市业务表单信息
 * @author zlh
 * @date 2021-10-27
 * @export
 * @param {object} data
 * @returns
 */
export async function delTieCardInformation(data) {
    return request(api_deleteTieCardInformation, {
        method: 'POST',
        data
    });
}
/**
 * @description 获取城市业务提示信息
 * @author zlh
 * @date 2021-10-29
 * @export
 * @param {object} data
 * @returns
 */
export async function getCityPromptMsg(data) {
    return request(api_getCityPromptMsg, {
        method: 'POST',
        data
    });
}
/**
 * @description 获取城市业务提示信息
 * @author zlh
 * @date 2021-10-29
 * @export
 * @param {object} data
 * @returns
 */
export async function saveCityPromptMsg(data) {
    return request(api_saveCityPromptMsg, {
        method: 'POST',
        data
    });
}
/**
 * @description 获取城市注册or修改密码配置列表
 * @author zlh
 * @date 2021-10-29
 * @export
 * @param {object} data
 * @returns
 */
export async function getCityInfoAccPass(data) {
    return request(api_getCityInfoAccPass, {
        method: 'POST',
        data
    });
}
